package com.yuyang.wifi.utils.network;


import com.yuyang.wifi.base.BaseResult;
import com.yuyang.wifi.model.AdTypeInfoResult;
import com.yuyang.wifi.model.CheckAdResult;
import com.yuyang.wifi.model.CheckUpgradeResult;
import com.yuyang.wifi.model.ProtocolResult;
import com.yuyang.wifi.model.ShowIconResult;
import com.yuyang.wifi.model.TaskDtlResult;

import java.util.Map;

import androidx.annotation.CheckResult;
import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

public interface ClientApi {

    //升级验证
    @POST("appversion/version")
    Observable<CheckUpgradeResult> checkUpgrade(@Body Map<String, String> params);

    @POST("appsuggestion/add")
    Observable<BaseResult> SuggestReturn(@Body Map<String, String> params);

    @POST("protocol/download")
    Observable<ProtocolResult> getProtocolUrl(@Body Map<String, String> params);

    @POST("appadvertiser/getAdvertiser")
    Observable<AdTypeInfoResult> getAdTypeInfo(@Body Map<String, String> params);

    @POST("apptask/getTasklist")
    Observable<TaskDtlResult> getTaskDtl(@Body Map<String, String> params);

    @POST("appicon/showIcon")
    Observable<ShowIconResult> showIcon(@Body Map<String, String> params);

    @POST("sys/addInfo")
    Observable<BaseResult> registerInto(@Body Map<String, String> params);

    @POST("promote/callback")
    Observable<BaseResult> ttCallBack(@Body Map<String, String> params);

    @POST("wallpaper/addInfo")
    Observable<BaseResult> wallpaper(@Body Map<String, String> params);

    @POST("apptask/getHomeCondition")
    Observable<CheckAdResult> check(@Body Map<String, String> params);



}

